package com.seveneight.baijiesteward.utils;

import android.content.Context;
import cn.sharesdk.onekeyshare.OnekeyShare;
import cn.sharesdk.wechat.friends.Wechat;
import cn.sharesdk.wechat.moments.WechatMoments;

/**
 * Created by user1 on 2018/2/28.
 */

public class ShareUtil {

    public static void shareFriend(Context context,String path){
        OnekeyShare oks = new OnekeyShare();
        oks.setImagePath(path);
        oks.setPlatform(Wechat.NAME);
        oks.show(context);
    }

    public static void shareMoment(Context context,String path){
        OnekeyShare oks = new OnekeyShare();
        oks.setImagePath(path);
        oks.setPlatform(WechatMoments.NAME);
        oks.show(context);
    }
}
